package com.lcxw.hxzbadmin.service.baseservice;

import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Component;
import com.lcxw.hxzbadmin.dao.adminmapper.GiftTypeMapper;
import com.lcxw.hxzbadmin.entity.pojo.GiftType;

@Component
public class GiftTypeService {

    @Resource
    GiftTypeMapper giftTypeMapper;

    public int insert(GiftType giftType)throws Exception {
        return giftTypeMapper.insert(giftType);
    }

    public int updateByPrimaryKey(GiftType giftType)throws Exception {
      return giftTypeMapper.updateByPrimaryKey(giftType);
    }

    public GiftType selectByRange(Integer range)throws Exception{
        return giftTypeMapper.selectByRange(range);
    }

    public List<GiftType> selectAll() throws Exception{
        return giftTypeMapper.selectAll();
    }
}
